<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>excel-js</title>
  </head>
  <body>
    <div id="app">
      <input type="file" id="files" name="files[]" multiple />
      <output id="list"></output>
    </div>
  </body>
</html>
<script>
  function handleFileSelect(evt) {
    var files = evt.target.files;
    var output = [];
    for (var i = 0, f; f = files[i]; i++) {
      output.push('<li><strong><a href="./show_map.html?file_name='+escape(f.name)+'" target="_blank">', (f.name), '</a></strong></li>');
    }
    document.getElementById('list').innerHTML = '<ul>' + output.join('') + '</ul>';
  }

  document.getElementById('files').addEventListener('change', handleFileSelect, false);
</script>
